package com.cloudlibrary.domain;

import java.io.Serializable;

/**
 * 
 * @TableName record
 */
public class Record implements Serializable {
    /**
     * 借阅记录id
     */
    private Integer recordId;

    /**
     * 借阅的图书名称
     */
    private String recordBookname;

    /**
     * 借阅的图书的ISBN编号
     */
    private String recordBookisbn;

    /**
     * 图书借阅人
     */
    private String recordBorrower;

    /**
     * 图书借阅时间
     */
    private String recordBorrowtime;

    /**
     * 图书归还时间
     */
    private String recordRemandtime;

    private static final long serialVersionUID = 1L;

    /**
     * 借阅记录id
     */
    public Integer getRecordId() {
        return recordId;
    }

    /**
     * 借阅记录id
     */
    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    /**
     * 借阅的图书名称
     */
    public String getRecordBookname() {
        return recordBookname;
    }

    /**
     * 借阅的图书名称
     */
    public void setRecordBookname(String recordBookname) {
        this.recordBookname = recordBookname;
    }

    /**
     * 借阅的图书的ISBN编号
     */
    public String getRecordBookisbn() {
        return recordBookisbn;
    }

    /**
     * 借阅的图书的ISBN编号
     */
    public void setRecordBookisbn(String recordBookisbn) {
        this.recordBookisbn = recordBookisbn;
    }

    /**
     * 图书借阅人
     */
    public String getRecordBorrower() {
        return recordBorrower;
    }

    /**
     * 图书借阅人
     */
    public void setRecordBorrower(String recordBorrower) {
        this.recordBorrower = recordBorrower;
    }

    /**
     * 图书借阅时间
     */
    public String getRecordBorrowtime() {
        return recordBorrowtime;
    }

    /**
     * 图书借阅时间
     */
    public void setRecordBorrowtime(String recordBorrowtime) {
        this.recordBorrowtime = recordBorrowtime;
    }

    /**
     * 图书归还时间
     */
    public String getRecordRemandtime() {
        return recordRemandtime;
    }

    /**
     * 图书归还时间
     */
    public void setRecordRemandtime(String recordRemandtime) {
        this.recordRemandtime = recordRemandtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Record other = (Record) that;
        return (this.getRecordId() == null ? other.getRecordId() == null : this.getRecordId().equals(other.getRecordId()))
            && (this.getRecordBookname() == null ? other.getRecordBookname() == null : this.getRecordBookname().equals(other.getRecordBookname()))
            && (this.getRecordBookisbn() == null ? other.getRecordBookisbn() == null : this.getRecordBookisbn().equals(other.getRecordBookisbn()))
            && (this.getRecordBorrower() == null ? other.getRecordBorrower() == null : this.getRecordBorrower().equals(other.getRecordBorrower()))
            && (this.getRecordBorrowtime() == null ? other.getRecordBorrowtime() == null : this.getRecordBorrowtime().equals(other.getRecordBorrowtime()))
            && (this.getRecordRemandtime() == null ? other.getRecordRemandtime() == null : this.getRecordRemandtime().equals(other.getRecordRemandtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRecordId() == null) ? 0 : getRecordId().hashCode());
        result = prime * result + ((getRecordBookname() == null) ? 0 : getRecordBookname().hashCode());
        result = prime * result + ((getRecordBookisbn() == null) ? 0 : getRecordBookisbn().hashCode());
        result = prime * result + ((getRecordBorrower() == null) ? 0 : getRecordBorrower().hashCode());
        result = prime * result + ((getRecordBorrowtime() == null) ? 0 : getRecordBorrowtime().hashCode());
        result = prime * result + ((getRecordRemandtime() == null) ? 0 : getRecordRemandtime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", recordId=").append(recordId);
        sb.append(", recordBookname=").append(recordBookname);
        sb.append(", recordBookisbn=").append(recordBookisbn);
        sb.append(", recordBorrower=").append(recordBorrower);
        sb.append(", recordBorrowtime=").append(recordBorrowtime);
        sb.append(", recordRemandtime=").append(recordRemandtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}